import React, { Component } from 'react'

export default class Counter extends Component {
  render() {
    console.log('-----子组件的render---------');
    return (
      <div>
        <h1>计数器</h1>
        <div>{this.props.number}</div>
      </div>
    )
  }
}
